package com.athuiju.hr.mapper;

import com.athuiju.hr.entity.Position;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wzh
 * @since 2021-12-15
 */
@Component
public interface PositionMapper extends BaseMapper<Position> {
    /**
     * 根据id查询职位信息*/
    @Select("SELECT * FROM position WHERE sectorID=#{sectorID}")
    List<Position>getByid(String sectorId);
}
